package com.wyz.tracing.infrastructure.repository.book;

import com.wyz.tracing.domain.entity.book.Book;
import com.wyz.tracing.domain.entity.book.BookId;
import com.wyz.tracing.domain.entity.tracing.different.AggregateDifference;
import com.wyz.tracing.infrastructure.repository.RepositorySupport;

/**
 * @author wyz
 * @version 1.0
 * @date 2023/8/17
 */
public class BookRepositoryImpl extends RepositorySupport<Book, BookId> implements BookRepository {

    @Override
    protected Book onSelect(BookId bookId) {
        return super.onSelect(bookId);
    }

    @Override
    protected void onInsert(Book aggregate) {
        super.onInsert(aggregate);
    }

    @Override
    protected void onUpdate(Book aggregate, AggregateDifference<Book, BookId> aggregateDifference) {
        super.onUpdate(aggregate, aggregateDifference);
    }

    @Override
    protected void onDelete(Book aggregate) {
        super.onDelete(aggregate);
    }
}
